<!--  -->
<template>
  <div>
    <!-- 子路由的出口 -->
    <router-view></router-view>
    <!-- tabBar组件 -->
    <van-tabbar v-model="active" route active-color="#ee0a24">
      <van-tabbar-item icon="wap-home" to="/">首页</van-tabbar-item>
      <van-tabbar-item icon="gem" to="/answer">发现</van-tabbar-item>
      <van-tabbar-item icon="add-square" to="/goods">发布</van-tabbar-item>
      <van-tabbar-item icon="comment" to="/video">消息</van-tabbar-item>
      <van-tabbar-item icon="friends" to="/my">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data() {
    return {
      active: 0,
    };
  },
};
</script>